import request from "@/utils/request";
import qs from "qs"

/** 视图数据 */
export function queryAppReportMetric(data = {}, params = {}) {
  return request({
    url: "/monitor/queryAppReportMetric",
    method: "GET",
    data,
    params,
  });
}

/** 列表数据 */
export function listQueryData(data = {}, params = {}) {
  return request({
    url: "/monitor/queryData",
    method: "GET",
    data,
    params,
  });
}

/** 清空列表 */
export function cleanQueryData(data = {}, params = {}) {
  return request({
    url: "/monitor/clearData",
    method: "POST",
    data: qs.stringify(data),
    params,
  });
}


/** 日志列表 */
export function listQueryLog(data = {}, params = {}) {
  return request({
    url: "/monitor/queryLog",
    method: "GET",
    data,
    params,
  });
}

/** 清空日志列表 */
export function cleanQueryLog(data = {}, params = {}) {
  return request({
    url: "/monitor/clearLog",
    method: "POST",
    data: qs.stringify(data),
    params,
  });
}